package com.jhx.mall.app.service.impl;

import com.jhx.mall.app.service.DtsCartService;
import com.jhx.mall.dao.DtsCartDao;
import com.jhx.mall.dao.impl.DtsCartDaoImpl;
import com.jhx.mall.entity.DtsCart;

import java.util.List;

/**
 * @Description TODO
 * @Author 李琪
 * @Date 2025/4/1 16:06
 **/
public class DtsCartServiceImpl implements DtsCartService {
    DtsCartDao dtsCartDao=new DtsCartDaoImpl();
    @Override
    public List<DtsCart> selectCartByUserId(Long userId) {
        return dtsCartDao.selectCartByUserId(userId);
    }

    @Override
    public int deleteCartByUserId(Long Id) {
        return dtsCartDao.deleteCartByUserId(Id);
    }

    @Override
    public int updateCartByUserId(Long Id, Long number) {
        return dtsCartDao.updateCartByUserId(Id,number);
    }
}
